home *** CD-ROM | disk | FTP | other *** search
/ Practical Web Pages 2004 September / PracticalWebPages-WPG13-09-2004-Coverdisc.iso / pc / Software / Toolkit / Sothink SWF Quicker 1.5 / data1.cab / Public_Files / Effects / ActionScript / Rotate / Stretched.sqe < prev    next >
Encoding:
Text File  |  2004-06-14  |  1.7 KB  |  80 lines

  1. ========== Description Part Begin ==========
  2. name = "Stretched";
  3. description = "The characters are stretched by a mysterious power.";
  4. version = "1.00";
  5. bin = "Stretched.bin";
  6. ========== Description Part End ==========
  7.  
  8. ========== Parameter Part Begin ==========
  9. $nCharacterCount(EDIT,INT,1,1 10000,"Total Characters ","The total characters using the special effect. The value is defined by the selected characters in the movie, but can not be changed in the property box.");
  10. $nFrameCount(EDIT,INT,3,3 3,"Total Frames","It indicates the total frames of actions. The total frames of the effect is probably more than it.");
  11. $nAlphaSpeed(EDIT,INT,1,0 1000,"Fading Speed","The speed of character fading.");
  12. $nScaleSpeed(EDIT,INT,5,1 1000,"Scaling Speed","The speed of character scaling.");
  13.  
  14. ========== Parameter Part End ==========
  15.  
  16. ========== Function Part Begin ==========
  17. nCharacterCount = 4;
  18. nFrameCount = 3;
  19.  
  20. nAlphaSpeed = 1;
  21. nScaleSpeed = 5;
  22.  
  23.  
  24.  
  25.  
  26. nCopyCount = 0;
  27. for(i = 1;i <= nCharacterCount;i++)
  28. {
  29.     for(j = 1; j <= 2; j++)
  30.     {
  31.         strTemp = "t" + i + j;
  32.         nCopyCount++;
  33.         duplicateMovieClip("c" + i,strTemp,nCopyCount);
  34.     }
  35. }
  36.  
  37.  
  38.  
  39. function again()
  40. {
  41.     gotoAndPlay(2);
  42. }
  43.  
  44. function fun()
  45. {
  46.     
  47.     for(i = 1;i <= nCharacterCount;i++)
  48.     {
  49.         for(j = 1;j<= 2;j++)
  50.         {
  51.         
  52.             if(j == 1)
  53.             {
  54.                 this["t" + i + j]._xscale += 5;
  55.             }
  56.             else
  57.             {
  58.                 this["t" + i + j]._yscale += nScaleSpeed;
  59.             }
  60.             this["t" + i + j]._alpha -= nAlphaSpeed;
  61.         
  62.         }
  63.     }
  64.     
  65.     if(this["t"+nCharacterCount + 2]._alpha < 0)
  66.         gotoAndPlay(1);
  67. }
  68.  
  69. ========== Function Part End ==========
  70.  
  71. ========== Frame Part Begin ==========
  72. $frame(fun,1,-1,"fun");
  73. $frame(fun,2,-1,"fun");
  74. $frame(again,3,-1,"again");
  75. ========== Frame Part End ==========
  76.  
  77.  
  78.  
  79.